<%--
  User: wyz
  Date: 2024/7/22
  Time: 16:03
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<html>
<head>
    <title>入库管理</title>
    <style>
        #toolbar {
            margin-bottom: 10px;
            display: flex;
            align-items: center;
        }
        .toolbar-item{
            margin-right: 10px;
        }
    </style>
</head>
<body>

<%@include file="../common/header.jsp"%>
<div class="container clearfix">
    <%@include file="../common/menu.jsp"%>
    <!--/sidebar-->
    <div class="main-wrap">
        <div class="crumb-wrap">
            <div class="crumb-list">
                <i class="icon-font"></i>
                <a href="http://localhost:8080/back/index.jsp">首页</a>
                <span class="crumb-step">&gt;</span>
                <span class="crumb-name">入库管理</span>
            </div>
        </div>
        <div class="search-wrap">
            <div id="toolbar">
                <div class="toolbar-item">
                    <a href="../inStorage/addInStorage"><input class="btn btn-primary btn2" name="sub" value="添加" type="button"/></a>
                </div>
                <div class="toolbar-item">
                    <form action="../inStorage/search.do" method="get">
                        <table class="search-tab">
                            <tr>
                                <td>
                                    <input class="common-text" placeholder="请输入信息查询"  name="condition" id="" type="text" />
                                </td>
                                <td>
                                    <input class="btn btn-primary btn2"  type="submit"/>
                                </td>
                                <th width="70"><p></p ></th>
                                <td>
                                    <div class="common-text">
                                        <label for="category"  placeholder="请选择依据排序的字段"></label>
                                        <select name="sort" id="category">
                                            <option value=""  disabled selected>请选择依据排序的字段</option>
                                            <option value="instorage_id">编号</option>
                                            <option value="instorage_time">时间</option>
                                            <%--                                                <option value="supplierCompany">供应商公司名</option>--%>
                                            <%--                                                <option value="supplierName">供应商负责人</option>--%>

                                        </select>
                                    </div>
                                </td>
                            </tr>
                        </table>
                    </form>
                </div>
            </div>

        </div>
    <div class="result-wrap">
    <div class="result-content">
        <table class="result-tab" width="100%">
            <thead>
            <tr>
                <th>入库编号</th>
                <th>商品编码</th>
                <th>供货商</th>
                <th>入库数量</th>
                <th>详细资料</th>
                <th colspan="2">操作</th>
            </tr>
            </thead>
            <tbody>
            <c:forEach items="${instorages}" var="instorages">
            <tr>
                <td>${instorages.instorageId}</td>
                <td>${instorages.goodsBarcode}</td>
                <td>${instorages.supplierCompany}</td>
                <td>${instorages.goodsCount}</td>

                <td class="details"><a href="../inStorage/getInStorageById?id=${instorages.instorageId}">查看</a></td>
                <td class="action" ><a href="../inStorage/edit.do?id=${instorages.instorageId}">修改</a></td>
                <td class="details"><a href="../inStorage/deleteInStorage?id=${instorages.instorageId}">删除</a></td>
            </tr>
            </c:forEach>
            </tbody>

        </table>
    </div>
</div>


    </div>
</div>
<%@include file="../common/footer.jsp"%>

</body>
</html>
